"""
@Project ：TeachingInterfacePro 
@File    ：DeleteArticleTypesApi.py
@IDE     ：PyCharm 
@Author  ：ceiling
@Date    ：2025/4/19 10:22 
"""
import requests

from api import HALO_BASE_URL, Authorization


class DeleteArticleTypesApi:

    def __init__(self):

        self.url = HALO_BASE_URL + "/apis/content.halo.run/v1alpha1/categories/"

        self.headers = {
            "Authorization": Authorization
        }

    def delete_article_types(self, article_name):

        response = requests.delete(self.url + article_name, headers=self.headers)
        return response

